This file holds CPTPClock class declaration.
More...
This file holds CPTPClock class declaration.
◆ clearConfig()
| void PTPClock::clearConfig |
( |
| ) |
|
◆ getDelayMechanism()
| int PTPClock::getDelayMechanism |
( |
| ) |
|
Gets the profile type.
- Returns
- int, the profile type. Timer types: eDefault = 0, ePower = 1
◆ getDelayMechanismStr()
| string PTPClock::getDelayMechanismStr |
( |
| ) |
|
Returns the delay mechanisim as a string.
- Returns
- string, profile strings: "End to End", "Peer to Peer"
◆ getMode()
| PTPMode PTPClock::getMode |
( |
| ) |
|
Returns the mode.
- Returns
- enum<PTPMode>, the modes. Mode types: eE2etransparent = 0, eBoundary = 1, eForward = 2
◆ getModeStr()
| string PTPClock::getModeStr |
( |
| ) |
|
Returns the mode as a string.
- Returns
- string, Mode strings: "e2etransparent", "boundary", "forward"
◆ getNumOfPorts()
| int PTPClock::getNumOfPorts |
( |
| ) |
|
Returns the number of ports.
- Returns
- int, the number of ports.
◆ getProfile()
| PTPProfile PTPClock::getProfile |
( |
| ) |
|
Gets the profile type.
- Returns
- enum<PTPProfile>, the profile type. Timer types: eDefault = 0, ePower = 1
◆ getProfileStr()
| string PTPClock::getProfileStr |
( |
| ) |
|
Returns the profile as a string.
- Returns
- string, profile strings: "Default", "Power"
◆ init()
◆ setDelayMechanism()
| void PTPClock::setDelayMechanism |
( |
DelayMechanism |
| ) |
|
Sets the delay mechanism type.
- Parameters
-
| delay,the | type of delay. Timer types: eEnd2End = 0, ePeer2Peer = 1 |
◆ setMode()
| void PTPClock::setMode |
( |
PTPMode |
| ) |
|
Sets the mode.
- Parameters
-
| mode,the | type of timer. Timer types: eE2etransparent = 0, eBoundary = 1, eForward = 2 |
◆ setPriority1()
| void PTPClock::setPriority1 |
( |
int |
| ) |
|
Sets priority 1 to the given value.
- Parameters
-
◆ setPriority2()
| void PTPClock::setPriority2 |
( |
int |
| ) |
|
Sets priority 2 to the given value.
- Parameters
-
◆ setProfile()
| void PTPClock::setProfile |
( |
PTPProfile |
| ) |
|
Sets the profile type.
- Parameters
-
| profile,the | type of timer. Timer types: eDefault = 0, ePower = 1 |
◆ setPtpTime()
| void PTPClock::setPtpTime |
( |
string |
| ) |
|
Sets ptp time to the given value.
- Parameters
-
The documentation for this class was generated from the following file: